
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   I F   C O M   I S   C L O S E D   E X T E R N A L L Y   W H I L E   R U N N I N G 
 
 '   A N D   T H E N   D O I N G   S T O P   A N D   R U N 
 
 '   S O M E T I M E S   A U T O M A T I O N   C R A S H E S   A N D   C L O S E S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   T h i s   d o e s   n o t   h a p p e n s   i f   d e b u g g i n g 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e s t o r e d   b y   L o a d V a r s 
 
 N u m e r i c   D u t y C y c l e 1   =   8 0 0 0 
 
 N u m e r i c   D u t y C y c l e 2   =   8 0 0 0 
 
 N u m e r i c   L i n e a r i t y   =   0 . 5 
 
 N u m e r i c   S m o o t h i n g   =   0 . 3 
 
 
 
 N u m e r i c   S l o t _ D u t y 1   =   1 2 0 
 
 N u m e r i c   S l o t _ D u t y 2   =   1 2 1 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L o a d   A p p 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r . e x e 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S t a r t 
 
 C O M   O p e n   3 2   1 0 0 0 0 0 0 
 
 G o t o   L o o p 
 
 S t o p 
 
 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S e n d   C o m m a n d s 
 
 L a b e l   E n a b l e P w m 
 
 	 C O M   W r i t e S t r i n g   " E N A B L E _ P W M "   +   C R L F 
 
 R e t u r n 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S e n d   O p t i o n s 
 
 L a b e l   S e n d O p t i o n s 
 
 	 S e n d O p t i o n s T o D r i v e r M o d u l e 
 
 R e t u r n 
 
 
 
 L a b e l   S e n d O p t i o n s T o D r i v e r M o d u l e 
 
 	 S t r i n g   C m d   =   D u t y C y c l e 1   +   "   "   +   D u t y C y c l e 2 
 
 	 C m d   =   C m d   +   "   "   +   L i n e a r i t y   +   "   "   +   S m o o t h i n g 
 
 	 C O M   W r i t e S t r i n g   " O P T I O N S   "   +   C m d     +   C R L F 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     L O O P 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   L o o p 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L o o p   t i m e 
 
 	 W a i t   S e c o n d s   0 . 0 0 1 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   D e b u g s 
 
 	 D u t y C y c l e F r o m S l o t 
 
 G o t o   L o o p 
 
 
 
 L a b e l   D u t y C y c l e F r o m S l o t 
 
 	 I f   S l o t ( S l o t _ D u t y 1 )   < >   D u t y C y c l e 1 
 
 	 	 E n a b l e P w m 
 
 	 	 D u t y C y c l e 1   =   S l o t ( S l o t _ D u t y 1 ) 
 
 	 	 S e n d O p t i o n s 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ D u t y 2 )   < >   D u t y C y c l e 2 
 
 	 	 E n a b l e P w m 
 
 	 	 D u t y C y c l e 2   =   S l o t ( S l o t _ D u t y 2 ) 
 
 	 	 S e n d O p t i o n s 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 
 
 ' B O O K M A R K S   
 
 
 
 ' E D I T E D L I N E S   2 1   1   1 0   6   8   7   7   1 0   1   9   5   1 0   
 
 
 
 ' E X E C   D e s t X   =   1 2 
 
 